cmake_minimum_required(VERSION 2.8.3)
project(fake_drone)

set(CMAKE_BUILD_TYPE "Release")
ADD_COMPILE_OPTIONS(-std=c++14 )
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  nav_msgs
  traj_utils
)
find_package(Eigen3 REQUIRED)
find_package(PCL 1.7 REQUIRED)

catkin_package()

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  ${EIGEN3_INCLUDE_DIR}
  ${PCL_INCLUDE_DIRS}
)

# cmd -> pos and odom
add_executable (poscmd_2_odom src/poscmd_2_odom.cpp )
target_link_libraries(poscmd_2_odom 
      ${catkin_LIBRARIES})

# fake drone detect node
add_executable (fake_drone_detect src/fake_drone_detect.cpp )
target_link_libraries(fake_drone_detect 
      ${catkin_LIBRARIES}
      ${PCL_LIBRARIES})
